var _Map = require("lodash.map")
var _Filter = require("lodash.filter")

const Map = _Map
const MyMap = _Map
const Filter = _Filter

function mergeArray(a1, a2, key) {
    var finshArray = a1;
    _Map(a2, item2 => {
        var isExit = false;
        _Map(a1, item1 => {
            if (item1 == item2) {
                isExit = true
            }
        })
        if (!isExit) {
            finshArray.push(item2)
        }
    })

    return finshArray
}

module.exports = {
    mergeArray,
    MyMap,
    Filter
}